﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs"
    Inherits="CTEA_INDIA.ChangePassword" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Change Password</title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div class="toporagne">
        <%--<img src="Images/top_orange-strip.jpg" />--%>
        <hr size="10" color="#091247" width="900px" />
    </div>
    <div>
        <center>
            <table width="900px" border="0">
                <tr>
                    <td valign="top" align="center">
                        <table width="900px" border="0" class="MainDiv">
                            <tr>
                                <td valign="top" width="200px" align="center">
                                    <m1:Menu runat="server" ID="menu" />
                                </td>
                                <td align="left" valign="top">
                                    <table border="0" width="500px">
                                        <tr>
                                            <td class="myaccount" colspan="2">
                                                <asp:Label ID="Label1" runat="server" Text="Change Password" CssClass="headingpage"></asp:Label><br />
                                                <div class="imgstrip">
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <span id="idSpanMsg" runat="server" class="spanMsgs" style="display: none; width: 500px">
                                                </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <table border="0" cellpadding="8" cellspacing="8" class="innerBlackBG">
                                                    <tr>
                                                        <td align="left" class="Label">
                                                            Old Password:
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox ID="txtPass" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                                                            <div style="font-size: 12px">
                                                                <asp:RequiredFieldValidator ID="reEmailId" runat="server" ControlToValidate="txtpass"
                                                                    ErrorMessage=" Enter your password." Display="None"></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="reEmailId">
                                                                </asp:ValidatorCalloutExtender>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" class="Label ">
                                                            New Password:
                                                        </td>
                                                        <td align="left">
                                                            <div>
                                                                <asp:TextBox ID="txtNewPassword" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                                                            </div>
                                                            <div style="font-size: 12px">
                                                                <asp:RequiredFieldValidator ID="rePassword" runat="server" ControlToValidate="txtNewPassword"
                                                                    Display="None" ErrorMessage="Enter your password."></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="rePassword">
                                                                </asp:ValidatorCalloutExtender>
                                                                <asp:RegularExpressionValidator ID="repass" Display="None" runat="server" ErrorMessage="Enter Valid Password."
                                                                    ControlToValidate="txtNewPassword" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9@\$]{8,20})$"></asp:RegularExpressionValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="repass">
                                                                </asp:ValidatorCalloutExtender>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" class="Label ">
                                                            Confirm Password:
                                                        </td>
                                                        <td align="left">
                                                            <div>
                                                                <asp:TextBox ID="txtConfirm" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                                                            </div>
                                                            <div style="font-size: 12px">
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtConfirm"
                                                                    Display="None" ErrorMessage="Please enter your password."></asp:RequiredFieldValidator>
                                                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RequiredFieldValidator1">
                                                                </asp:ValidatorCalloutExtender>
                                                                <asp:CompareValidator ID="cfCPConfirm" runat="server" Display="None" ErrorMessage="Password Do Not Match"
                                                                    ControlToValidate="txtConfirm" ControlToCompare="txtNewPassword"></asp:CompareValidator></div>
                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="cfCPConfirm">
                                                            </asp:ValidatorCalloutExtender>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <br />
                                                <asp:Button ID="btnChangePass" runat="server" CssClass="btnsubmit" Text="Update"
                                                    OnClick="btnChangePass_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
